<?php
/**
 * A simple example logout page for PageBricks_Auth.
 * 
 * @version Auth_r12+
 * @package    PageBricks
 * @subpackage Xamples
 * @filesource
 * 
 */
$statusReports = array(
					-1=>'Exception',
					0=>'Undetermined state',
					1=>'OK',
					101=>'User not logged in yet',
					102=>'Exceeded the maximum of allowed login attempts.',
					103=>'Session expired',
					104=>'User idled',
					111=>'IP changed',
					112=>'User agent changed',
					113=>'Bad request',
					201=>'Login succeeded',
					202=>'Login credentials wrong',
					203=>'Login credentials incomplete',
					301=>'Logout succeeded',
					302=>'Logout failed',
					311=>'Logout requested',
					312=>'Logout called by script'
					  );
$status = 'Status: ' . $statusReports[$auth->getStatus()];

echo <<<EOT
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<meta name="Language" content="german, de, deutsch" />
	<meta http-equiv="Content-Language" content="de" />
	<script type= "text/javascript">
			var RecaptchaOptions = {
				theme : 'blackglass'
			}		
	</script>
	<title>Logout</title>
	</head>
	
<body>
<div style="width: 30%; padding: 1em; background-color: lightgray">
	<br/>
	<p>Reason for logout: $status</p>
	<br/><br/>
	<p>$logouttext</p><br/>
	<p>$linkage</p>
</div>
</body>
</html>
EOT;
?>